<?php

/**
 * CelebrioMail MailReceiver
 *
 * @copyright  Copyright (c) 2011 Celebrio Software
 * @package    CelebrioMail
 */
namespace ApplicationsModule\MailModule;

/**
 * handles working with e-mail using pop3 or imap
 * @author Celebrio Software
 */
class MailReceiver extends \Celebrio\Mail\MailReceiver {

    /**
     * handles working with e-mail using pop3 or imap
     * @author Celebrio Software
     * @param MailServer $mailServer MailServer to connect to
     */
    public function  __construct(MailServer $mailServer) {
	parent::__construct($mailServer->getUsername(),
		$mailServer->getPassword(),
		$mailServer->getAddress(),
		$mailServer->getInServer(),
		$mailServer->getInProtocol(),
		$mailServer->getInPort(),
		$mailServer->getInSsl());
    }

}